﻿<%@ Page Language="C#" MasterPageFile="~/Admin.Master"  AutoEventWireup="true" CodeBehind="AddCategory.aspx.cs" Inherits="VCN.admin.AddCategory" %>

<asp:Content ID="Content7" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table width="100%" cellspacing="3" cellpadding="3" border="0">
        <tbody>
            <tr>
                <th scope="col" class="title" colspan="2" style="height: 30px">
                    <h2 style="font-size: x-large; color: #0099FF">
                        THÊM LOẠI SẢN PHẨM MỚI</h2>
                </th>
            </tr>
            <tr>
                <td colspan="2" class="row" align="center" style="height: 5px">
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                        HeaderText="Bạn chưa nhập nội dung sau :" />
                </td>
            </tr>
            <tr>
                <td align="right" class="row" 
                    
                    style="height: 24px; width: 16%; text-align: left; color: #0099FF; font-weight: bold;">
                    Tên chuyên mục </td>
                <td width="46%" align="left" class="row" style="height: 24px; width: 70%;">
                    <asp:TextBox ID="txt_CategoryName" runat="server" Width="254px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfv_CategoryName" runat="server" 
                        ControlToValidate="txt_CategoryName" ErrorMessage="Chưa nhập tên chuyên mục">(*)</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right" class="row" 
                    
                    style="height: 25px; width: 16%; text-align: left; color: #0099FF; font-weight: bold;">
                    Ảnh minh họa&nbsp;&nbsp;&nbsp;&nbsp; </td>
                <td width="46%" align="left" class="row" style="height: 25px; width: 70%;">
                    <br />
                    <asp:FileUpload ID="FileUpload" runat="server" />
                    <asp:Label ID="lbl_Error" runat="server" Font-Bold="True" ForeColor="Red" 
                        Text="(*) Phải chọn ảnh sản phẩm" Visible="False"></asp:Label>
                    <br />
                    <br />
                </td>
            </tr>
            <tr>
                <td height="43" align="right" class="save" style="width: 16%">
                    &nbsp;
                </td>
                <td height="43" align="left">


                    &nbsp;<asp:Button ID="btnAdd" runat="server" Text="Thêm mới" 
                        OnClick="btnAdd_Click" />
                    &nbsp;<asp:Button ID="btnReset" runat="server" Text="Xóa trắng" 
                        OnClick="btnReset_Click" CausesValidation="False" />
                    &nbsp;<asp:Button ID="btnCancel" runat="server" Text="Thoát" 
                        OnClick="btnCancel_Click" CausesValidation="False" />
                </td>
            </tr>
        </tbody>
    </table>
</asp:Content>